package com.yonyou.crm.bpub.approval.service;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.yonyou.crm.bpub.approval.entity.BpubTenantDO;
import com.yonyou.crm.bpub.approval.entity.BpubTenantVO;
import com.yonyou.crm.common.biz.service.BaseBizServiceImpl;

@Service
public class BpubTenantBizServiceImpl extends BaseBizServiceImpl<BpubTenantDO> {
	
	public String getYsTenantId(Long tenantId) {
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("tenantId", tenantId);
		Object ysTenantId = dao.selectOne(BpubTenantDO.class, "getYsTenantId", param);
		if (ysTenantId == null) {
			return null;
		}
		return (String)ysTenantId;
	}
}
